package cn.itsource.basic.service;

import cn.itsource.basic.page.PageList;
import cn.itsource.basic.query.BaseQuery;

import java.util.List;

public interface IBaseService<T> {

    List<T> queryAll();

    T queryOne(Long id);

    void add(T t);

    void delete(Long id);

    void update(T t);

    /*分页查询*/
    PageList<T> queryPage(BaseQuery baseQuery);

    void batchDelete(List<Long> ids);
}
